package com.dhecp.project.api.service;

import com.dhecp.project.api.domain.ApiResponse;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.Map;

/**
 * @ClassName ApiAmazonService
 * @Description TODO
 * @Author alula
 * @Date 2022-09-23 19:23
 */
public interface ApiAmazonService {

    /**
     * 获取亚马逊订单信息
     * @param insertLogId
     * @param system
     * @param type
     * @param queryParams
     * @return
     */
    ApiResponse getAllAmazonOrderInfo(int insertLogId, String system, String type, Map<String, Object> queryParams, Date startTime, Integer genre,Date endTime);

    /**
     * 获取亚马逊FBA库存信息
     * @param insertLogId
     * @param system
     * @param type
     * @param queryParams
     * @return
     */
    ApiResponse getAllAmazonShopProductInfo(int insertLogId, String system, String type, Map<String, Object> queryParams);

    /**
     * 获取所有亚马逊店铺产品价格报表
     * @param insertLogId
     * @param system
     * @param type
     * @param queryParams
     * @return
     */
    ApiResponse getAllAmazonShopProductPriceReport(int insertLogId, String system, String type, Map<String, Object> queryParams);

    /**
     * 获取亚马逊销售流量报表
     * @param insertLogId
     * @param system
     * @param type
     * @param queryParams
     * @return
     */
    ApiResponse getAmazonSalesTrafficReport(int insertLogId, String system, String type, Map<String, Object> queryParams);

    /**
     * 获取亚马逊授权URL地址
     * @param queryParams
     * @return
     */
    ApiResponse getAmazonAuthUrl(Map<String, Object> queryParams);

    /**
     * 获取亚马逊广告授权URL地址
     * @param  queryParams 格式为{"shopId":"店铺guid","userId":"0000"}
     * @return
     */
    ApiResponse getAmazonAuthUrlGg(Map<String, Object> queryParams);

    /**
     * 获取亚马逊TOKEN值
     * @param code
     * @param shopId
     * @return
     */
    ApiResponse getAmazonToken(int insertLogId, String system, String type, String code, String shopId);

    ApiResponse getAmazonTokenGg(int insertLogId, String system, String type, String code, String shopId);

    /**
     * 亚马逊店铺是否失效
     * @param system
     * @param type
     * @param queryParams
     * @return
     */
    ApiResponse getAmazonShop( String system, String type, Map<String, Object> queryParams, Date startTime,Integer genre);

}
